﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SinBiota.Model.Entities.Habitat>>" %>

<%@ Import Namespace="Localization" %>

<%@ Import Namespace="SinBiota.Model.Entities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Strings.Habitat%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: Strings.Habitat%></h2>
    <% Html.RenderPartial("SearchBox"); %>
    <table>
    <thead>
        <tr class="header">
            <th width="40">
            </th>
            <th>
                <%: Html.LabelFor(model => model.First().Name) %>
            </th>
        </tr>
        </thead>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <% Html.RenderPartial("EditDetailsRemoveUserControl", item); %>
            </td>
            <td>
                <%: item.Name %>
            </td>
        </tr>
        <% } %>
    </table>
    <div class="small button radius">
        <%: Html.ActionLink(Strings.CreateNew, "Create") %>
    </div>
</asp:Content>
